package com.itheima.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CheckgroupCheckitemMapper {
    // 根据检查组id删除中间表数据(删除检查项)
    @Delete("delete from t_checkgroup_checkitem where checkitem_id=#{id}")
    void deleteByCheckItemId(Integer id);

    // 根据检查组id删除中间表数据(删除检查组)
    @Delete("delete from t_checkgroup_checkitem where checkgroup_id=#{id}")
    void deleteByCheckgroupId(Integer id);
}
